<?php

trait Hello {
    public function sayHello() {
        echo 'hello ';
    }
}
trait World {
    public function sayWorld() {
        echo 'World';
    }}

class Test {
    use Hello, World;

    public function say() {
        $this->sayHello();
        $this->sayWorld();
    }
}

$test1 = new Test();
$test1->say();
